package com.gem.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhang
 * @date 2020/9/21 10:27
 * 订单详情
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetails {
    private Integer id;
    //购买数量
    private Integer num;
    //小计
    private Double subtotal;

    //商品单价
    private Double price;


    //外键
    private Order order;

    private Commodity commodity;
}
